Skip to content

Bump phpstan/phpstan from 0.10.8 to 0.11 #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2019

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps phpstan/phpstan from 0.10.8 to 0.11.

Release notes

Sourced from phpstan/phpstan's releases.

0.11

PHPStan 0.11 has been made possible by LOVOO:

LOVOO: PHPStan is an elementary part of our development workflow. We cannot live without it! Thanks for the great work!

Also, my work on PHPStan is enabled by generous patrons over at Patreon. If PHPStan makes your life easier, consider a contribution, it'll be greatly appreciated!

Check out the article about PHPStan in 2018 and this new release at Medium.com!

Major new features

  • Ability to ignore errors by path (#1411, #1619), thanks josephzidell, damnedest!
  • Check - reporting unreachable conditions on level 4. Previously, only projects with checkAlwaysTrue* flags set to true (usually with installed strict-rules) found out about always true conditions. With this change, always-true conditions with else branches and ternary operators are reported (186e4e0ed845070780b1647703e8eaa001222284, e06af0e69562052c088005e9747c19bc8bfd783a):
if ($alwaysTrue) {
	// ...
} else {
	// dead - reported on level 4!
}
  • Improved analysis of non-empty arrays (5716b2e493edb8085ad27e5da3fef1f0920438c8, 21309e233cf02d7dd814f6f12c8553e373d20d61, deb70ef6706c12037cbac1b163cd6652c9ded733) - #336, #165, #1539, #1073, #959, #1505, #1409
  • Check (level 3) - validate method signatures against parents and implemented interfaces - forces Liskov substitution principle (#1292), thanks iluuu1994!
  • Check - validation of patterns used in preg_* functions on level 0 (#1567), thanks iluuu1994!
  • Check (level 2) - string and castable-to-string types in echo and print statements (#1462), thanks dmitrydymarchuk!
  • Check (level 3) - report invalid offset assignments (56be6db5fb44b16543e44f4d1b9c62f2c0d9e75b) - e.g. $string['foo'] = 'bar' leads to an error.
  • Check (level 2) - invalid comparison between an object and a number (#1582), thanks jasny!
  • Check (level 2) - check default function parameter type against typehint and phpDoc (#1608), thanks iluuu1994!
  • Loaded extensions for known functions in PHP runtime are no longer needed for successful ananlysis (8e6a215e14f951824fb6686ffd700eb96f892790)

Improvements

  • Implicit [**inheritDoc**](https://github.com/inheritDoc) from parent classes and interfaces (#1533), thanks iluuu1994!
  • Memory consumption improvement - limit amount of cached files for parser (#1673), thanks damnedest!
  • Improved precision of reported lines in some rules (9f7ab5b7713ebf4c6b95542c68221e717a9994de, eaedf17ca7451aa93cd43c989f10847f40dbbfcd, 9a2646d4dd03ca4be64277e53404118cb0df28a3)
  • Dead branches are not analysed (295c8f2df2a3eafdd741e8fd3f2807db70757ec4)
  • IncompatiblePhpDocTypeRule - detect NeverType in [**param**](https://github.com/param) and [**return**](https://github.com/return) (a0e2a76158d4ecdeb506f7867e9c92eff94b23d8)
  • IncompatiblePropertyPhpDocTypeRule - check for ErrorType and NeverType in properties (7e66ceefa9887ffb1d2ead25614a34c8691ad197)
  • Report traits in anonymous function typehints - traits are not valid types (2a96f1481862fdc77fd954efe1c51ee4d8296d5b)
  • Always have a nice progressbar (6b04dca433d54310cfccfe4ee422c7f105c6d9ee)
  • Detect $var[] used in read context (#1309), thanks iluuu1994!
  • Improved invalid offset access detection (7a630b8d5353fd80d5d1ef89c1ca1f0d3f79a45a)
  • Moved reporting of object accesses and calls to level 6 (216fb2e62d17e1184794e1d021cc590b8a942165)
  • Moved partially correct types in an encapsed string to level 6 (0470c530d831118885f3cac2e78581ab816504f1)
  • Array from pathinfo may or may not contain extension key (#1637), thanks jasny!
  • Make binary operations aware of strings (#1628), thanks wata727!
  • Collecting error handler to report multiple parse errors at once (7b38a2301ecc5f1b47142ff89691f12b903c3590)
... (truncated)
Commits
  • cfb0b43 Fixed PreInc/PreDec as offset in ArrayDimFetch assignment
  • deb70ef Check - dead foreach
  • 3d21eb0 functionMap: Serializable::unserialize has parameter $serialized of type string
  • d290ddf dump-deps - fixed crash in short array destructuring syntax
  • 0d8e717 Fixed build
  • 3bff265 Option to not pollute scope with values from always iterable foreach
  • a55fce6 Test - do dynamic class constants work?
  • f55789c Get dynamicConstantNames from configuration to avoid filtering.
  • dde08ae Fixed build
  • 07601ea fix typo
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will not automatically merge this PR because it includes an out-of-range update to a production dependency.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan) from 0.10.8 to 0.11.
- [Release notes](https://github.com/phpstan/phpstan/releases)
- [Commits](phpstan/phpstan@0.10.8...0.11)

Signed-off-by: dependabot[bot] <support@dependabot.com>
@WyriHaximus WyriHaximus merged commit 1ce92dd into master Jan 20, 2019
@dependabot-preview dependabot-preview bot deleted the dependabot/composer/phpstan/phpstan-0.11 branch January 20, 2019 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants